export default [
    {
        path: '/user',
        name: 'user-manage',
        meta: {
            title: '用户管理',
            icon: 'user-outlined'
        },
        redirect: '/user/list',
        component: () => import('@/components/Layout/CommonLayout.vue'),
        children: [
            {
                path: '/user/list',
                name: 'user-list',
                meta: {
                    title: '用户列表',
                    keepAlive: true,
                    icon: 'user-outlined'
                },
                component: () => import('@/views/user/list.vue'),
            },
            {
                path: '/user/detail',
                name: 'user-detail',
                meta: {
                    title: '用户详情',
                    toRoute: 'user-list'
                },
                hidden: true,
                component: () => import('@/views/user/detail.vue'),
            },

        ],
    },
];
